#include "ConcreteColleagueA.h"

namespace Mediator{
    void ConcreteColleagueA::receiveMsg() {
        std::cout << "concreteColleagueA receive msg" << std::endl;
    }

    void ConcreteColleagueA::sendMsg(std::string *msg) {
        std::cout << "concreteColleagueA send msg" << std::endl;
        this->mediator->operation(msg);
    }

    void ConcreteColleagueA::setMediator(Md *mediator) {
        this->mediator = mediator;
    }

    std::string ConcreteColleagueA::getName() {
        return "colleagueA";
    }
}
